//
//  MainTabViewController.swift
//  LiuheCommunity
//
//  Created by 罗恒 on 2018/1/30.
//  Copyright © 2018年 luo. All rights reserved.
//

import UIKit

class MainTabViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let tabBarController = UITabBarController()
        let firstVC = HompageViewController()
        firstVC.title = "首页"
        firstVC.tabBarItem.image = UIImage.init(named: "home")
        firstVC.tabBarItem.selectedImage = UIImage.init(named: "homeSelected")
        let firstNC = UINavigationController.init(rootViewController: firstVC)
        
        let secondVC = MyViewController()
        secondVC.title = "我的"
        secondVC.tabBarItem.image = UIImage.init(named: "my")
        secondVC.tabBarItem.selectedImage = UIImage.init(named: "mySelected")
        let secondNC = UINavigationController.init(rootViewController: secondVC)
        
        let array = [firstNC,secondNC]
        tabBarController.viewControllers = array
        
        
        
        tabBarController.tabBar.barTintColor = UIColor.white
        tabBarController.tabBar.tintColor = UIColor.red

    }


}
